package com.example.turnoverwarning.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("mt_store")
public class Shop {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private BigDecimal threshold; // 阈值金额
    @TableField(value = "mail", jdbcType = JdbcType.VARCHAR)
    private String mail;          // 通知邮箱
    private LocalDateTime updateTime; // 更新时间
}